package com.bugsnag.ohos.reactnative;

import java.util.Map;

/**
 * Holds information about a state change event which is serialized by the BugsnagReactNative
 * class and emitted to the JS layer.
 */
public class MessageEvent {

    /**
     * The type of the event. E.g. `UpdateContext`
     */
    String type;

    /**
     * The data which underwent a state change. For instance, if a user called
     * `Bugsnag.setContext()`, the new context value would be present in this field.
     */
    Object data;

    public MessageEvent(String type, Object data) {
        this.type = type;
        this.data = data;
    }
}
